<template>
	<view class="content">
		<view class="header">
			<view class=""></view>
			<view class="header-right" @tap="$navTo('/pagesB/securityCheck/dangerReport')">
				<image src="/static/add.png" mode=""></image>
				<span>隐患上报</span>
			</view>
		</view>
		<view class="ipts">
			<view class="record">
				<image src="/static/jilu.png" mode=""></image>
				<span>用户信息</span>
			</view>
			<!-- 户号 -->
			<view class="info-item">
				<view class="info-item-left">
					<view class="dot"></view>
					<span>户号</span>
				</view>
				<span class="place-class">{{user_info.meter_num}}</span>
			</view>
			<view class="hengxian"></view>
			<!-- 户主姓名 -->
			<view class="info-item">
				<view class="info-item-left">
					<view class="dot"></view>
					<span>户主姓名</span>
				</view>
				<span class="place-class">{{user_info.realname}}</span>
			</view>
			<view class="hengxian"></view>
			<!-- 身份证号 -->
			<view class="info-item">
				<view class="info-item-left">
					<view class="dot"></view>
					<span>身份证号</span>
				</view>
				<span class="place-class">{{user_info.ID_num}}</span>
			</view>
			<view class="hengxian"></view>
			<!-- 联系方式 -->
			<view class="info-item">
				<view class="info-item-left">
					<view class="dot"></view>
					<span>联系方式</span>
				</view>
				<span class="place-class">{{user_info.mobile}}</span>
			</view>
			<view class="hengxian"></view>
			<!-- 地址 -->
			<view class="info-item">
				<view class="info-item-left">
					<view class="dot"></view>
					<span>地址</span>
				</view>
				<span class="place-class">{{user_info.address}}</span>
			</view>
		</view>
		<!-- 第二块 -->
		<view class="ipts">
			<!-- 品牌 -->
			<view class="info-item">
				<view class="info-item-left">
					<view class="dot"></view>
					<span>品牌</span>
				</view>
				<view class="place-class">
					<easySelect class="easySelect"
						style="width:400rpx;height:100%;color: #0000;font-size: 24rpx;color: #fff;text-align: right;"
						:options="options" ref="easySelect" :value="user_info.brand_name" @selectOne="brandChange">
					</easySelect>
				</view>
			</view>
			<view class="hengxian"></view>
			<!-- 实际功率 -->
			<view class="info-item">
				<view class="info-item-left">
					<view class="dot"></view>
					<span>实际功率</span>
				</view>
				<view class="place-class">
					<easySelect class="easySelect"
						style="width:400rpx;height:100%;color: #0000;font-size: 24rpx;color: #fff;text-align: right;"
						:options="options1" ref="easySelect" :value="user_info.power_name" @selectOne="powerChange">
					</easySelect>
				</view>
			</view>
			<view class="hengxian"></view>
			<!-- 气表号 -->
			<view class="info-item">
				<view class="info-item-left">
					<view class="dot"></view>
					<span>气表号</span>
				</view>
				<span class="place-class">{{user_info.meter_num}}</span>
			</view>
			<view class="hengxian"></view>
			<!-- 气表底数 -->
			<view class="info-item">
				<view class="info-item-left">
					<view class="dot"></view>
					<span>气表底数</span>
				</view>
				<input v-model="user_info.meter_base_num" style="font-size: 24rpx;" type="text" value=""
					:placeholder="user_info.meter_base_num" />
			</view>
			<view class="hengxian"></view>

			<view class="info-item">
				<view class="info-item-left">
					<view class="dot"></view>
					<span>燃气表</span>
				</view>
				<view class="danger-img-box">
					<view class="danger-img" v-if="!img1" @click="changeImg('燃气表')">
						<image src="../../static/updatePhoto.png" mode=""></image>
					</view>
					<view class="danger-img" v-else>
						<image :src="img1" @tap="seeimg(img1)" mode=""></image>
						<view class="updeletes" @tap="updetail('img1')">
							<image src="../../static/delete.png"></image>
						</view>
					</view>
				</view>
			</view>
			<view class="hengxian"></view>

			<view class="info-item">
				<view class="info-item-left">
					<view class="dot"></view>
					<span>燃气火点</span>
				</view>
				<view class="danger-img-box2">

					<view class="danger-img" v-for="(item,index) in img2" :key='index'>
						<image :src="item" @tap="seeimg(item)" mode=""></image>
						<view class="updeletes" @tap="updetail2(index)">
							<image src="../../static/delete.png"></image>
						</view>
					</view>
					<view class="danger-img" v-if="img2.length<2" @click="changeImg('燃气火点')">
						<image src="../../static/updatePhoto.png" mode=""></image>
					</view>
				</view>
			</view>
			<view class="hengxian"></view>

			<view class="info-item">
				<view class="info-item-left">
					<view class="dot"></view>
					<span>资料</span>
				</view>
				<view class="danger-img-box2">

					<view class="danger-img" v-for="(item,index) in img3" :key='index'>
						<image :src="item" @tap="seeimg(item)" mode=""></image>
						<view class="updeletes" @tap="updetail3(index)">
							<image src="../../static/delete.png"></image>
						</view>
					</view>
					<view class="danger-img" v-if="img3.length<4" @click="changeImg('资料')">
						<image src="../../static/updatePhoto.png" mode=""></image>
					</view>
				</view>
			</view>
			<view class="hengxian"></view>
			<view class="info-item">
				<view class="info-item-left">
					<view class="dot"></view>
					<span>其他</span>
				</view>
				<view class="danger-img-box">
					<view class="danger-img" v-if="!img4" @click="changeImg('其他')">
						<image src="../../static/updatePhoto.png" mode=""></image>

					</view>
					<view class="danger-img" v-else>
						<image :src="img4" @tap="seeimg(img4)" mode=""></image>
						<view class="updeletes" @tap="updetail4(index)">
							<image src="../../static/delete.png"></image>
						</view>
					</view>
				</view>
			</view>
			<view class="hengxian"></view>
			<view class="supplement">
				<view class="info-item">
					<view class="info-item-left">
						<view class="dot"></view>
						<span>备注</span>
					</view>
					<span class="place-class">添加备注</span>
				</view>
				<view class="explain">
					<textarea v-model="autoText" maxlength="200" auto-height @input="textChange" class="textArea"
						value="" placeholder="请补充说明您的需求" />
				</view>
				<view class="suppBottom">
					<view class="danger-img-box">
					</view>
					<view class="num">
						<view class="">{{textNumber}}/200</view>
					</view>
				</view>
			</view>
		</view>
		<!-- 上次安检时间 -->
		<view class="ipts">
			<view class="info-item">
				<view class="info-item-left">
					<view class="dot"></view>
					<span>是否安检</span>
				</view>
				<view class="danger-img-box">
					<switch :checked="isChecked" @change="isChecked = !isChecked" style="transform:scale(0.7)" />
				</view>
			</view>
			<view class="hengxian"></view>
			<view class="info-item">
				<view class="info-item-left">
					<view class="dot"></view>
					<span>是否签收《居民用气安全检查结果通知书》</span>
				</view>
				<view class="danger-img-box">
					<view class="danger-img-box">
						<switch :checked="isChecked1" @change="isChecked1 = !isChecked1" style="transform:scale(0.7)" />
					</view>
				</view>
			</view>
			<view class="hengxian"></view>
			<view class="info-item">
				<view class="info-item-left">
					<view class="dot"></view>
					<span>是否派发安全宣传资料</span>
				</view>
				<view class="danger-img-box">
					<view class="danger-img-box">
						<switch :checked="isChecked2" @change="isChecked2 = !isChecked2" style="transform:scale(0.7)" />
					</view>
				</view>
			</view>
			<view class="hengxian"></view>
			<view class="info-item">
				<view class="info-item-left">
					<view class="dot"></view>
					<span>电子签名</span>
				</view>
				<view class="danger-img-box2">
					<view class="danger-img" v-if="signature">
						<image :src="signature.intact_url" @tap.stop="seeimg(signature.intact_url)" mode=""></image>
						<view class="updeletes" @tap.stop="signatureDel()">
							<image src="../../static/delete.png"></image>
						</view>
					</view>
					<view @tap="$navTo('./sign')" class="danger-img"
						style="border: 1rpx solid #DDDDDD;display: flex;align-items: center;justify-content: center;"
						v-if="signature==''">
						<image style="width: 60%;height: 60%;" src="../../static/jiahao.png" mode=""></image>
					</view>
				</view>
			</view>
		</view>
		<!-- 跟踪记录 -->
		<view class="ipts">
			<view class="zhanwei" v-if="last_check.staff_name ==undefined">

			</view>
			<view class="record">
				<view class="" @tap="$navTo('/pagesB/rithcheck/securityList?id='+user_info.id)">
					<image src="/static/jilu.png" mode=""></image>
					<span>安检记录</span>
				</view>
			</view>
			<view v-if="last_check.staff_name!=undefined">

				<!-- <view class="record-item" :style="{marginBottom:marginBotton1}">
					<view class="record-item-left">
						<span class="shu"></span>
						<span class="title">{{last_check.staff_name}}</span>
						<span class="time">{{last_check.check_time_date}}</span>
					</view>
					<view class="record-item-right">
						<image class="dianhua" src="/static/dianhua.png" mode=""></image>
						<span class="title">{{last_check.staff_mobile}}</span>
						<image class="zhankai" src="/static/zhankai.png" mode="" @click="showRecord = !showRecord">
						</image>
					</view>
				</view> -->
				<view v-if="false">
					<!-- <view v-if="showRecord"> -->
					<view class="info-item">
						<view class="info-item-left">
							<view class="dot"></view>
							<span>品牌</span>
						</view>
						<span class="place-class">{{last_check.brand}}</span>
					</view>
					<view class="hengxian"></view>
					<!-- 实际功率 -->
					<view class="info-item">
						<view class="info-item-left">
							<view class="dot"></view>
							<span>实际功率</span>
						</view>
						<span class="place-class">{{last_check.power}}</span>
					</view>
					<view class="hengxian"></view>
					<!-- 气表号 -->
					<view class="info-item">
						<view class="info-item-left">
							<view class="dot"></view>
							<span>气表号</span>
						</view>
						<span class="place-class">{{user_info.meter_num}}</span>
					</view>
					<view class="hengxian"></view>
					<!-- 气表底数 -->
					<view class="info-item">
						<view class="info-item-left">
							<view class="dot"></view>
							<span>气表底数</span>
						</view>
						<span class="place-class">{{last_check.meter_base_num}}</span>
					</view>
					<view class="hengxian"></view>
					<!-- 气表照片 -->
					<view class="info-item">
						<view class="info-item-left">
							<view class="dot"></view>
							<span>燃气表</span>
						</view>
						<view class="danger-img-box">
							<view class="danger-img">
								<image :src="last_check.qibiao_img" @tap="seeimg(last_check.qibiao_img)" mode="">
								</image>
							</view>
						</view>
					</view>
					<view class="hengxian"></view>

					<view class="info-item">
						<view class="info-item-left">
							<view class="dot"></view>
							<span>燃气火点</span>
						</view>
						<view class="danger-img-box">
							<view class="danger-img" v-for="(item,index) in last_check.dianhuo_img">
								<image :src="item" @tap="seeimg(item)" mode=""></image>
							</view>
						</view>
					</view>
					<view class="hengxian"></view>

					<view class="info-item">
						<view class="info-item-left">
							<view class="dot"></view>
							<span>资料</span>
						</view>
						<view class="danger-img-box">

							<view class="danger-img" v-for="(item,index) in last_check.qimi_img">
								<image :src="item" mode="" @tap="seeimg(item)"></image>
							</view>
						</view>
					</view>
					<view class="hengxian"></view>
					<view class="info-item">
						<view class="info-item-left">
							<view class="dot"></view>
							<span>其他</span>
						</view>
						<view class="danger-img-box">

							<view class="danger-img">
								<image :src="last_check.success_img" @tap="seeimg(last_check.success_img)" mode="">
								</image>
							</view>
						</view>
					</view>
					<view class="hengxian"></view>
					<!-- 备注 -->
					<view class="info-item">
						<view class="info-item-left">
							<view class="dot"></view>
							<span>备注</span>
						</view>
					</view>
					<view class="supplement">
						<view class="explain">
							<textarea maxlength="200" disabled auto-height class="textArea" :value="last_check.mark"
								placeholder="" />
						</view>
						<view class="suppBottom">
							<view class="danger-img-box">
							</view>
						</view>
						<view class="hengxian"></view>
					</view>
				</view>

			</view>

		</view>
		<view class="btns">
			<view class="btn1 consel" @click="flag= true,searchIpt = ''">取消</view>
			<view class="btn1 save" @click="userPost">保存</view>
		</view>
		<cpimg ref="cpimg" @result="cpimgOk" @err="cpimgErr" :number="1" :fixOrientation="true" :size="500"
			:maxWidth="800" :ql="0.7" type="url" />

	</view>
</template>

<script>
	import cpimg from "@/components/cpimg/cpimg.vue"
	import easySelect from '@/components/easy-select/easy-select'
	export default {
		components: {
			easySelect,
			cpimg
		},
		data() {
			return {
				ret: '',
				mysearchIpt: false,
				searchIpt: '',
				searchIpts: '',
				flag: true,
				token: '',
				last_check: {},
				user_info: {},
				textNumber: 0,
				// 品牌数组
				options: [],
				// 功率数组
				options1: [],
				// 品牌id
				brandId: '',
				// 功率id
				powerId: '',
				// 备注
				autoText: '',
				// 气表底数
				meter_base_num: '',
				// 默认显示品牌名
				brandName: '',
				// 默认显示功率
				powerName: '',
				// 气表照片地址
				fileImg1: '',
				img1: '',

				fileImg2: [],
				img2: [],

				fileImg3: [],
				img3: [],
				fileImg4: '',
				img4: '',
				// 是否安检
				isChecked: false,
				isCheckedNum: '',
				// 是否签收
				isChecked1: false,
				isChecked2: false,
				isCheckedNum1: '',
				isCheckedNum2: '',
				showRecord: true,
				marginBotton1: 100 + 'rpx',
				danger_id: '',
				signature: '', //电子签名
				sercode: [],
			}
		},
		onShow() {

		},
		onLoad(e) {
			this.searNum(e)
			this.token = e.token

			wx.enableAlertBeforeUnload({
				message: "是否返回上一页",
			});
		},
		methods: {
			brandChange(option) {
				console.log(option)
				this.user_info.brand_name = option.label
				this.options.forEach(item => {
					if (item.label == this.user_info.brand_name) {
						this.brandId = item.id
					}
				})
			},
			powerChange(option) {
				this.user_info.power_name = option.label
				this.options1.forEach(item => {
					if (item.label == this.user_info.power_name) {
						this.powerId = item.id
					}
				})
			},
			signatureDel() {
				this.signature = ''
			},
			// 是否安检
			// switch1Change(e) {
			// 	let that = this
			// 	that.isChecked = !that.isChecked
			// },
			//图片删除
			updetail(type, index) {
				this.img1 = ''
			},
			updetail2(index) {
				this.img2.splice(index, 1)
			},
			updetail3(index) {
				this.img3.splice(index, 1)
			},
			updetail4(index) {
				this.img4 = ""
			},
			//图片预览
			seeimg(img) {
				uni.previewImage({
					urls: [img],
					longPressActions: {
						itemList: [],
						success: function(data) {
							console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
						},
						fail: function(err) {
							console.log(err.errMsg);
						}
					}
				});
			},

			// 选择气表照片

			changeImg(ret) {
				var that = this;
				that.ret = ret
				that.$refs.cpimg._changImg()

			},
			cpimgOk(file) {
				let that = this
				var ret = that.ret
				uni.showLoading({
					title: '上传中...'
				})
				uni.uploadFile({
					url: that.$fileImg + '/common/upload',
					filePath: file[0],
					name: 'file',
					formData: {
						token: that.token
					},
					success(res1) {
						let dataPath = JSON.parse(res1.data)
						if (dataPath.code == 1) {
							if (ret == '燃气表') {
								that.fileImg1 = dataPath.data.url
								that.img1 = file[0]
								// console.log(111)
							}
							if (ret == '燃气火点') {
								that.fileImg2.push(dataPath.data.url)
								that.img2.push(file[0])
							}
							if (ret == '资料') {
								that.fileImg3.push(dataPath.data.url)
								that.img3.push(file[0])
							}
							if (ret == '其他') {
								that.fileImg4 = dataPath.data.url
								that.img4 = file[0]
							}
						}
						uni.hideLoading()
					},
					fail: () => {
						uni.hideLoading()
						uni.showToast({
							title: '上传失败'
						})
					}
				});


			},

			cpimgErr(e) {
				uni.showToast({
					title: '上传失败',
					icon: 'none'
				})
				console.log(e)
			},

			textChange(e) {
				if (e.detail.cursor >= 200) {
					uni.showToast({
						title: '最多可以输入200个字',
						icon: 'none'
					})
				}
				this.textNumber = e.detail.cursor
			},
			// 获取品牌列表
			getBrandList(e) {
				let that = this
				that.$request.request({
					url: '/staff/brand_list',
					method: 'POST',
					data: {
						token: e.token
					}
				}).then(res => {
					that.options = res.data.data
				})
				that.$request.request({
					url: '/staff/power_list',
					method: 'POST',
					data: {
						token: e.token
					}
				}).then(res => {
					that.options1 = res.data.data
				})
			},
			// 提交保存
			userPost() {

				let that = this
				that.options.forEach(item => {
					if (item.label == that.user_info.brand_name) {
						that.brandId = item.id
					}
				})
				that.options1.forEach(item => {
					if (item.label == that.user_info.power_name) {
						that.powerId = item.id
					}
				})
				if (that.brandId == '') {
					uni.showToast({
						title: '请选择品牌',
						icon: 'none'
					})
					return
				}
				if (that.powerId == '') {
					uni.showToast({
						title: '请选择实际功率',
						icon: 'none'
					})
					return
				}
				if (that.isChecked == false) {
					that.isCheckedNum = '0'
				} else {
					that.isCheckedNum = '1'
				}
				if (that.isChecked1 == false) {
					that.isCheckedNum1 = '0'
				} else {
					that.isCheckedNum1 = '1'
				}
				if (that.isChecked2 == false) {
					that.isCheckedNum2 = '0'
				} else {
					that.isCheckedNum2 = '1'
				}

				var imgs2 = ''
				var imgs3 = ''
				that.fileImg2.forEach(item => {
					imgs2 += item + ','
				})
				that.fileImg3.forEach(item => {
					imgs3 += item + ','
				})
				that.$request.request({
					url: '/staff/check_submit',
					method: 'POST',
					data: {
						member_id: that.user_info.id,
						token: that.token,
						brand: that.brandId,
						power: that.powerId,
						meter_base_num: that.user_info.meter_base_num,
						qibiao_img: that.fileImg1,
						dianhuo_img: imgs2,
						qimi_img: imgs3,
						success_img: that.fileImg4,
						danger_id: that.sercode,
						is_receive: that.isCheckedNum,
						is_safe: that.isCheckedNum1,
						security: that.isCheckedNum2,
						mark: that.autoText,
						sign: that.signature.url
					}
				}).then(res => {
					console.log('that.sercode',that.sercode);
					that.$showToast(res.data.msg)
					if (res.data.code == 1) {
						setTimeout(() => {
							uni.navigateBack({
								delta: 1
							})
						}, 1000)
						that.flag = true
					}
				})
			},
			searNum(e) {

				let that = this

				that.$request.request({
					url: '/staff/user_search',
					method: 'POST',
					data: {
						token: e.token,
						meter_num: e.meter_num
					}
				}).then(res => {

					if (res.data.code == 1) {
						that.user_info = res.data.data.user_info
						that.last_check = res.data.data.last_check
						that.flag = false;
						that.mysearchIpt = true;
						this.getBrandList(e)
					} else {
						uni.showToast({
							title: res.data.msg,
							icon: 'none'
						})
						that.flag = true
					}
				})


			},
			searChange(e) {
				// console.log(e.detail)
				if (e.detail.value == '') {
					this.flag = false
				}
			},
			clousText() {
				this.flag = true
				this.searchIpt = ''
			},
			danger() {

				if (this.img1 != '') {
					uni.setStorage({
						key: 'img1',
						data: this.img1
					})
				}

				if (this.img2.length > 0) {
					uni.setStorage({
						key: 'img2',
						data: this.img2
					})
				}

				if (this.img3.length > 0) {
					uni.setStorage({
						key: 'img3',
						data: this.img3
					})
				}

				if (this.img4 != '') {
					uni.setStorage({
						key: 'img4',
						data: this.img4
					})
				}

				if (this.autoText != '') {
					uni.setStorage({
						key: 'bztext',
						data: this.autoText
					})
				}


				uni.navigateTo({
					url: '../securityCheck/dangerReport?id=' + this.last_check.member_id + '&type=' + '5' +
						'&socont=' + this.searchIpt
				})

			},
			close() {
				uni.navigateTo({
					url: '../index/index'
				})
				uni.removeStorage({
					key: 'img1'
				})
				uni.removeStorage({
					key: 'img2'
				})
				uni.removeStorage({
					key: 'img3'
				})
				uni.removeStorage({
					key: 'img4'
				})
				uni.removeStorage({
					key: 'bztext'
				})
			},

		}
	}
</script>

<style lang="scss" scoped>
	.content {
		background: #F1F1F1;
		padding-bottom: 100rpx;

		.header {
			display: flex;
			justify-content: space-between;
			align-items: center;
			// padding: 30rpx 30rpx;
			background-color: #F1F1F1;

			.header-right {
				display: flex;
				align-items: center;
				font-size: 24rpx;
				color: #333;
				// margin-right: 20rpx;
				padding: 10rpx 30rpx;

				image {
					width: 32rpx;
					height: 32rpx;
					margin-right: 10rpx;
				}
			}
		}

		.header1 {
			display: flex;
			align-items: center;
			box-sizing: border-box;
			height: 80rpx;
			width: 100%;
			background-color: #003690;
			padding: 0 30rpx;

			.ipt-box {
				display: flex;
				justify-content: space-between;
				align-items: center;
				box-sizing: border-box;
				padding: 0 20rpx;
				width: 450rpx;
				height: 52rpx;
				background-color: #fff;
				border-radius: 24rpx;

				image {
					width: 32rpx;
					height: 32rpx;
				}
			}

			.header1-right {
				display: flex;
				align-items: center;
				font-size: 28rpx;
				color: #E2ECFB;
				flex: 1;
				justify-content: center;

				image {
					width: 36rpx;
					height: 36rpx;
				}
			}
		}

		.newstyle {
			background: #003690;
			color: #FFFFFF;
		}



		.btns {
			position: fixed;
			bottom: 0;
			display: flex;
			width: 100%;
			z-index: 333;

			.btn1 {
				width: 50%;
				height: 96rpx;
				line-height: 96rpx;
				text-align: center;
				font-size: 24rpx;
			}

			.consel {
				background-color: #e9e9e9;
				color: #777;
			}

			.save {
				background-color: #003690;
				color: #fff;
			}
		}

		.btn:active {
			background: rgba(0, 0, 0, 0.4);
		}

		.zhanwei {
			height: 250rpx;
		}

		.ipts {
			background-color: #fff;
			margin-bottom: 20rpx;
		}

		.info-item {
			box-sizing: border-box;
			display: flex;
			align-items: center;
			justify-content: space-between;
			// height: 72rpx;
			width: 100%;
			padding: 10rpx 30rpx;
			background-color: #fff;
			font-size: 24rpx;
			color: #333;

			image {
				width: 32rpx;
				height: 32rpx;
			}

			input {
				flex: 1;
				text-align: right;
			}

			.dot {
				width: 8rpx;
				height: 8rpx;
				background-color: #003690;
				border-radius: 50%;
				margin-right: 10rpx;
			}

			.danger-img {
				position: relative;

				.updeletes {
					position: absolute;
					top: -20rpx;
					right: -20rpx;
					width: 40rpx;
					height: 40rpx;
					z-index: 88;

					image {
						width: 100%;
						height: 100%;
					}
				}
			}

			.danger-img-box {
				display: flex;

				.danger-img {
					width: 75rpx;
					height: 75rpx;
					// border: 2rpx dashed #eee;
					margin-right: 10rpx;


					image {
						width: 100%;
						height: 100%;
					}
				}
			}

			.danger-img-box2 {
				display: flex;

				.danger-img {
					width: 75rpx;
					height: 75rpx;
					// border: 2rpx dashed #eee;
					margin-right: 10rpx;

					image {
						width: 100%;
						height: 100%;
						opacity: 1;
					}
				}
			}

			.info-item-left {
				display: flex;
				align-items: center;
				font-size: 32rpx;
			}
		}

		.hengxian {
			width: 700rpx;
			height: 2rpx;
			background-color: #eee;
			margin: 20rpx auto;
		}

		.place-class {
			font-size: 26rpx;
			color: #999;
		}

		.btn {
			width: 646rpx;
			height: 80rpx;
			margin: 74rpx auto;
			text-align: center;
			line-height: 80rpx;
			border-radius: 40rpx;
			background-image: linear-gradient(to bottom, #2366D5, #001B48);
			font-size: 32rpx;
			color: #E5EFFE;
		}

		.btns {
			position: fixed;
			bottom: 0;
			display: flex;
			width: 100%;
			z-index: 333;

			.btn1 {
				width: 50%;
				height: 96rpx;
				line-height: 96rpx;
				text-align: center;
				font-size: 24rpx;
			}

			.consel {
				background-color: #e9e9e9;
				color: #777;
			}

			.save {
				background-color: #003690;
				color: #fff;
			}
		}

		.btn:active {
			background: rgba(0, 0, 0, 0.4);
		}

		.zhanwei {
			height: 250rpx;
		}

		.record {
			display: flex;
			align-items: center;
			// justify-content: space-between;
			color: #003690;
			font-size: 32rpx;
			padding: 20rpx;

			// margin-top: 20rpx;
			image {
				width: 32rpx;
				height: 32rpx;
				margin: 0 20rpx 0 30rpx;
			}
		}

		.record-item {
			display: flex;
			justify-content: space-between;
			padding: 10rpx 30rpx;
			border-bottom: 2rpx solid #eee;

			.record-item-left {
				display: flex;
				align-items: center;

				.shu {
					width: 8rpx;
					height: 28rpx;
					background-color: #003690;
					border-radius: 8rpx;
				}

				.title {
					font-size: 32rpx;
					color: #333;
					font-weight: 500;
					margin: 0 10rpx;
				}

				.time {
					font-size: 24rpx;
					color: #777;
				}
			}

			.record-item-right {
				display: flex;
				align-items: center;

				.dianhua {
					width: 28rpx;
					height: 28rpx;
				}

				.zhankai {
					width: 36rpx;
					height: 36rpx;
				}

				.title {
					font-size: 32rpx;
					color: #555;
					font-weight: 500;
					margin: 0 10rpx;
				}
			}
		}

		.supplement {
			margin: 20rpx 24rpx;
			background-color: #fff;
			position: relative;
			overflow: hidden;

			.explain {
				.textArea {
					min-height: 142rpx;
					padding: 14rpx 30rpx;
					font-size: 32rpx;
					text-align: left;
					color: rgba(187, 187, 187, 0.84);
				}
			}

			.suppBottom {
				.danger-img {
					position: relative;
					margin-left: 50rpx;
					margin-bottom: 0rpx;
					width: 68rpx;
					height: 68rpx;
					float: left;

					image {
						width: 36rpx;
						height: 36rpx;
						position: absolute;
						left: 50%;
						top: 50%;
						transform: translate(-50%, -50%);
					}
				}

				.num {
					float: right;
					margin-right: 26rpx;
				}
			}
		}
	}
</style>
